#include <cstdio>
#include <string>
#include <vector>
#include "conf.h"
#include "httpd.h"
#include "pdf.h"
#include "cmp.h"
#include "work.h"

using namespace std;

int main()
{
    puts("Server daemon law started.");

    /* 加载json配置 */
    conf_load();

    /* 启动http服务 */
    httpd_init();

    work_start();

    getchar();
    /* 关闭http服务 */
    httpd_kill();

    return 0;
}